<?php if (!defined('THINK_PATH')) exit();?><!-- <?php if(is_array($Ms)): foreach($Ms as $key=>$itm): echo ($itm["id"]); ?>&nbsp;|&nbsp;<?php echo ($itm["name"]); ?>&nbsp;|&nbsp;<?php echo ($itm["user_name"]); ?>&nbsp;|&nbsp;<?php echo (date('Y-m-d H:i:s',$itm["create_time"])); ?>&nbsp;|&nbsp;<br><?php endforeach; endif; ?>
<?php echo $page;?>
 -->


<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title></title>

    <!-- Bootstrap -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    
<table class="table">
	<thead>
		<tr>
			<th>#</th>
			<th>姓名</th>
			<!-- <th>班级</th> -->
			<th>用户名</th>
			<th>创建时间</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($Ms)): foreach($Ms as $key=>$itm): ?><tr>
				<th><?php echo ($itm["id"]); ?></th>
				<td><?php echo ($itm["name"]); ?></td>
				<!-- <td><?php echo ($itm["other"]); ?></td> -->
				<td><?php echo ($itm["user_name"]); ?></td>
				<td><?php echo (date('Y-m-d H:i:s',$itm["create_time"])); ?></td>
				<td>
					<a href="<?php echo U('Student/edit',array('id'=>$itm['id']));?>">修改</a>&nbsp;|&nbsp; 
					<a href="<?php echo U('Student/delete',array('id'=>$itm['id']));?>">删除</a>
				</td>
			</tr><?php endforeach; endif; ?>
	</tbody>
</table>
<?php echo $page;?>
  </body>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</html>